<template>
  <div>
    <van-button type="primary">主要按钮</van-button>
    <van-button type="info">信息按钮</van-button>
    <van-button type="default">默认按钮</van-button>
    <van-button type="warning">警告按钮</van-button>
    <van-button type="danger">危险按钮</van-button>
  </div>
</template>

<script>
// import axios from 'axios'
// axios.get('/user/login')

// 导入工具
// import request from './utils/request'
// import { setToken } from './utils/storage'

export default {
  data () {
    return {}
  },
  async created () {
    // 此处只是为了测试, 没有其他意义!
    // 测试代码: 测试过后一定要记得删除!!!
    // request 就是一个新的 axios 对象
    // const res = await request.post('/user/login', {
    //   username: 'web85',
    //   password: '123123'
    // })
    // // console.log(res)
    // // localStorage.setItem(键, 值)
    // setToken(res.data.data.token)
  }
}
</script>

<style lang="scss" scoped>

</style>
